package com.example.demo.service.impl;


import com.example.demo.entity.Product;
import com.example.demo.mapper.ProductMapper;
import com.example.demo.service.ProductService;
import com.example.demo.vo.SearchCriteriaVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    ProductMapper productMapper;


    @Override
    public List<Product> ProductByPage() {
        return productMapper.ProductByPage();
    }

    @Override
    public List<Product> ByCriteriaSearchVo(SearchCriteriaVo searchCriteriaVo) {
        return productMapper.ByCriteriaSearchVo(searchCriteriaVo);
    }
}
